package com.buba.pojo;



public class Data implements Comparable<Data>{
    //部门id
    private Integer deptid;
    //部门名称
    private String deptname;
    //区域id
    private Integer areaid;
    //区域名称
    private String areaname;
    //计划召开桌数
    private Integer plannum;
    //实际召开桌数
    private Integer itemnum;
    //执行率
    private Double rate;
    //执行排名
    private Integer rank;
    private Integer sumnewclient;
    private Integer sumoldclient;
    private Integer sumyxclient;
    private Integer summoney;

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public Integer getAreaid() {
        return areaid;
    }

    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }

    public Integer getPlannum() {
        return plannum;
    }

    public void setPlannum(Integer plannum) {
        this.plannum = plannum;
    }

    public Integer getItemnum() {
        return itemnum;
    }

    public void setItemnum(Integer itemnum) {
        this.itemnum = itemnum;
    }

    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Integer getSumnewclient() {
        return sumnewclient;
    }

    public void setSumnewclient(Integer sumnewclient) {
        this.sumnewclient = sumnewclient;
    }

    public Integer getSumoldclient() {
        return sumoldclient;
    }

    public void setSumoldclient(Integer sumoldclient) {
        this.sumoldclient = sumoldclient;
    }

    public Integer getSumyxclient() {
        return sumyxclient;
    }

    public void setSumyxclient(Integer sumyxclient) {
        this.sumyxclient = sumyxclient;
    }

    public Integer getSummoney() {
        return summoney;
    }

    public void setSummoney(Integer summoney) {
        this.summoney = summoney;
    }

    @Override
    public String toString() {
        return "Data{" +
                "deptid=" + deptid +
                ", deptname='" + deptname + '\'' +
                ", areaid=" + areaid +
                ", areaname='" + areaname + '\'' +
                ", plannum=" + plannum +
                ", itemnum=" + itemnum +
                ", rate=" + rate +
                ", rank=" + rank +
                ", sumnewclient=" + sumnewclient +
                ", sumoldclient=" + sumoldclient +
                ", sumyxclient=" + sumyxclient +
                ", summoney=" + summoney +
                '}';
    }

    @Override
    public int compareTo(Data data) {
        return this.getRate().compareTo(data.getRate());
    }
}
